From e39b33978944ef9c17db85b1a91b2637945353f9 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 5 Feb 2009 12:20:18 +0000 Subject: [PATCH] x86: Use per-domain irq-to-vector array when mapping GSIs Using the per-domain array enables single MSI vectors to be mapped. Signed-off-by: Espen Skoglund --- xen/arch/x86/physdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index 63ef08893b..794632c053 100644 --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -62,7 +62,7 @@ static int physdev_map_pirq(struct physdev_map_pirq *map) ret = -EINVAL; goto free_domain; } - vector = IO_APIC_VECTOR(map->index); + vector = domain_irq_to_vector(current->domain, map->index); if ( !vector ) { dprintk(XENLOG_G_ERR, "dom%d: map irq with no vector %d\n", -- 2.30.2